/*----------------------------------------*/
/*  01. Template default CSS
/*----------------------------------------*/

@mixin placeholder {
    &::-webkit-input-placeholder {
        @content;
    }
    &:-moz-placeholder {
        @content;
    }
    &::-moz-placeholder {
        @content;
    }
    &:-ms-input-placeholder {
        @content;
    }
}

/*-- Google Font --*/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

/*-- Common Style --*/
*,
*::after,
*::before {
    box-sizing: border-box;
}
*::placeholder{
    color: #666;
    opacity: .5;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	color: $gray-300;
	line-height: 1.7em;
	font-weight: 400;
	background: $white;
	-webkit-font-smoothing: antialiased;
	-moz-font-smoothing: antialiased;
    &[dir="rtl"] {
        text-align: right;
    }
}
a,
a:hover,
a:focus,
a:active,
button,
button:focus,
.btn,
.btn:focus,
.btn:active:focus,
input,
input:focus,
select,
textarea{
    transition: $transition-base;
    text-decoration: none;
    outline: 0;
    box-shadow: none;
}

p {
    &:last-child {
        margin-bottom: 0;
    }
}

ul{
    margin: 0;
    padding: 0;
    li{
        list-style: none;
    }
}


/* Section Style */
.section,
.section-fluid {
    float: left;

    width: 100%;
}
.section-fluid {
    padding-right: 55px;
    padding-left: 55px;
    @media #{$laptop-device, $desktop-device,
    $tablet-device,
    $large-mobile} {
        padding-right: 15px;
        padding-left: 15px;
    }
    @media #{$extra-small-mobile} {
        padding-right: 0;
        padding-left: 0;
    }
}
/* Section Spacing */
.section-padding {
    padding-top: 150px;
    padding-bottom: 150px;
    @media #{$tablet-device} {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    @media #{$large-mobile} {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}
.section-margin {
    margin-top: 150px;
    margin-bottom: 150px;
    @media #{$tablet-device} {
        margin-top: 80px;
        margin-bottom: 80px;
    }
    @media #{$large-mobile} {
        margin-top: 60px;
        margin-bottom: 60px;
    }
}
.section-padding-top{
    padding-top: 150px;
    @media #{$tablet-device} {
        padding-top: 80px;
    }
    @media #{$large-mobile} {
        padding-top: 60px;
    }
}
.section-padding-bottom {
    padding-bottom: 150px;
    @media #{$tablet-device} {
        padding-bottom: 80px;
    }
    @media #{$large-mobile} {
        padding-bottom: 60px;
    }
}

/* Section TItle */
.section-title {
    margin-bottom: 60px;
    @media #{$tablet-device} {
        margin-bottom: 50px;
    }
    @media #{$large-mobile} {
        margin-bottom: 40px;
    }
    & .subtitle {
        color: $creme;
        font-size: 14px;
        line-height: 1.3em;
        letter-spacing: 8px;
        text-transform: uppercase;
        margin-bottom: 30px;
        @media #{$desktop-device} {
            margin-bottom: 20px;
        }
        @media #{$tablet-device} {
            margin-bottom: 10px;
        }
        @media #{$large-mobile} {
            margin-bottom: 10px;
            letter-spacing: 4px;
        }
    }

    & .title {
        font-size: 60px;
        font-weight: 400;
        color: $dark;
        font-family: $headings-font-family;
        text-transform: initial;

        @media #{$large-mobile} {
            font-size: 40px;
        }
        
        @media #{$extra-small-mobile} {
            font-size: 35px;
        }

    }
}
/* Fit Image */
.fit-image {
    width: 100%;
    object-fit: cover;
}
/* swiper default styles */
.swiper-pagination {
    position: static;
    display: block;
    line-height: 1;
    margin-top: 40px;
    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        border-radius: 100%;
        background: $gray-400;
        opacity: 1;
        position: relative;
        outline: none;
        margin-right: 20px;
        margin: 0 5px !important;
        transition: $transition-base;
        &:last-child {
            margin-right: 0;
        }
        &:before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 1;
            transition: $transition-base;
        }
  
        &:hover{
            &:before{
                width: 10px;
                height: 10px;
                opacity: 1;
                background: $creme;
                border-radius: 100%;
                transition: $transition-base;
            }
        }
        &.swiper-pagination-bullet-active{
            background: $creme;
        }
    }
}
.swiper-pagination.swiper-pagination-primary  {
    & .swiper-pagination-bullet {
        &:hover{
            &:before{
                background:$primary;
                transition: $transition-base;
            }
        }
        &.swiper-pagination-bullet-active{
            border: 2px solid $primary;
            background:$primary;
            transition: $transition-base;
        }
    }
}
.swiper-nav-button {
    background-image: none;
    text-align: center;
    user-select: none;
    outline: none;
    width: 48px;
    height: 48px;
    font-size: 24px;
    color: #6d70a6;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.01);
    opacity: 0;
    visibility: hidden;
    transform: translate(0, -50%);
    margin: 0;
    top: 50%;
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        border-radius: inherit;
        color: $white;
        background: $gray-100;
    }
}
.swiper-nav-button:hover  {
    color: $white;
    &::before {
        color: $white;
        background: $headings-color;
    }
}
.swiper-container:hover {
    & .swiper-nav-button {
        opacity: 1;
        visibility: visible;
    }
}
/*-- Social Media Link --*/
.social-media-link {
    display: flex;
    flex-wrap: wrap;
    & a {
        font-size: 22px;
        color: $gray-300;
        &:not(:last-child) {
            margin-right: 30px;
            @media #{$large-mobile} {
               margin-right: 20px;
            }
        }
        &:hover {
            color: $primary;
        }
    }

    &.social-link-white {
        & a {
            color: $white;
            &:hover {
                color: $dark;
            }
        }
    }
}
/* Scroll Top style */
.scroll-top{
    position: fixed;
    right: 30px;
    bottom: -60px;
    z-index: 999;
    box-shadow: 0 30px 50px rgba(0,0,0,.03);
    display: block;
    padding: 0;
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 25px;
    line-height: 50px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    background-color: $gray-600;
    background-size: 200% auto;
    background-position: left center;
    transition: .3s;
    overflow: hidden;

    &:hover {
        background-color: $primary;
        i {
            color: $white;
            transition: .3s;
        }
    }

    @media #{$extra-small-mobile}{
        font-size: 20px;
    }

    &.show{
        visibility: visible;
        opacity: 1;
        bottom: 60px;
    }

    i{
        position: absolute;
        top: 50%;
        left: 50%;
        color: $white;
        transition: .3s;
    }

    .arrow-top{
        transform: translate(-50%, -50%);
    }

    .arrow-bottom{
        transform: translate(-50%, 80px);
    }

    &:hover{
        background-position: right center;
        .arrow-top{
            transform: translate(-50%, -80px);
        }
        .arrow-bottom{
            transform: translate(-50%, -50%);
        }
    }
}
/* Background Overlay */
.bg-overlay {
    position: relative;

    &::after {
        position: absolute;
        content: "";
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: $dark;
        opacity: .5;
    }
}
/* --- Preloader---*/
#preloader{
	position: fixed;
	top: 0; 
	bottom: 0; 
	left: 0; 
	right: 0;
	margin: auto;
	z-index: 999;
	background-color: $white;
}
.preloader{
	display: inline-block;
    padding: 0px;
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}